package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.MapPosDao;
import wqh.domain.MapPos;
import wqh.service.MapPosService;

import java.util.List;

@Service("mapPosService")
public class MapPosServiceImpl implements MapPosService{

    @Autowired
    private MapPosDao mapPosDao;

    public List<MapPos> findRecordByClass(MapPos mapPos) {
        return this.mapPosDao.findRecordByClass(mapPos);
    }

    public List<MapPos> findRecordByGeoID(Integer geoID) { return this.mapPosDao.findRecordByGeoID(geoID);}

    public int insertRecord(MapPos mapPos) {
        return this.mapPosDao.insertRecord(mapPos);
    }

    public int updateRecordByClass(MapPos mapPos) {
        return this.mapPosDao.updateRecordByClass(mapPos);
    }

    public int deleteById(Integer id) {
        return this.mapPosDao.deleteById(id);
    }

    public int deleteByDeviceId(Integer device_id) {
        return this.mapPosDao.deleteByDeviceId(device_id);
    }

    public int deleteByClass(MapPos mapPos) {
        return this.mapPosDao.deleteByClass(mapPos);
    }

    public int deleteByGeoId(Integer geo_id) {
        return this.mapPosDao.deleteByGeoId(geo_id);
    }
}
